import Gio from 'gi://Gio';
import './environment.js';
+import {formatError} from '../misc/errorUtils.js';
// Run the Mutter main loop after
// GJS finishes resolving this module.
GLib.idle_add(GLib.PRIORITY_DEFAULT, () => {
import('./main.js').then(main => main.start()).catch(e => {
const error = new GLib.Error(
- Gio.IOErrorEnum, Gio.IOErrorEnum.FAILED,
- `${e.message}\n${e.stack}`);
+ Gio.IOErrorEnum, Gio.IOErrorEnum.FAILED, formatError(e));
global.context.terminate_with_error(error);
});
return GLib.SOURCE_REMOVE;